Revert "Remove the broken test for now"
authorCosimo Cecchi <cosimoc@gnome.org>
Tue, 21 Feb 2012 11:25:06 +0000 (12:25 +0100)
committerCosimo Cecchi <cosimoc@gnome.org>
Tue, 21 Feb 2012 11:25:06 +0000 (12:25 +0100)
Passes correctly again now.

This reverts commit addff95c97aba96e9dc47a7788618c5eace6b5ba.

tests/reftests/entry-progress-coloring.css [new file with mode: 0644]
tests/reftests/entry-progress-coloring.ref.ui [new file with mode: 0644]
tests/reftests/entry-progress-coloring.ui [new file with mode: 0644]

diff --git a/tests/reftests/entry-progress-coloring.css b/tests/reftests/entry-progress-coloring.css
new file mode 100644 (file)
index 0000000..7b7886b
--- /dev/null
@@ -0,0 +1,23 @@
+@import "reset-to-defaults.css";
+
+* {  
+  -GtkWidget-interior-focus: false;
+  -GtkWidget-focus-line-width: 10;
+  font: Monospace;
+}
+
+GtkEntry #padded {
+  -GtkWidget-interior-focus: true;
+  padding: 10px;
+}
+
+.progressbar {
+  background-color: rgba(0,0,0,0);
+  background-image: none;
+  border-color: rgba(0,0,0,0);
+  color: red;
+}
+
+#reference {
+  color: red;
+}
diff --git a/tests/reftests/entry-progress-coloring.ref.ui b/tests/reftests/entry-progress-coloring.ref.ui
new file mode 100644 (file)
index 0000000..10240fd
--- /dev/null
@@ -0,0 +1,113 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<interface>
+  <!-- interface-requires gtk+ 3.0 -->
+  <object class="GtkWindow" id="window1">
+    <property name="can_focus">False</property>
+    <property name="type">popup</property>
+    <child>
+      <object class="GtkGrid" id="grid1">
+        <property name="visible">True</property>
+        <property name="can_focus">False</property>
+        <child>
+          <object class="GtkEventBox" id="eventbox1">
+            <property name="visible">True</property>
+            <property name="can_focus">False</property>
+            <child>
+              <object class="GtkEntry" id="entry1">
+                <property name="visible">True</property>
+                <property name="can_focus">False</property>
+                <property name="text" translatable="yes">000</property>
+                <property name="name">reference</property>
+                <property name="width_chars">6</property>
+              </object>
+            </child>
+          </object>
+          <packing>
+            <property name="left_attach">0</property>
+            <property name="top_attach">0</property>
+            <property name="width">1</property>
+            <property name="height">1</property>
+          </packing>
+        </child>
+        <child>
+          <object class="GtkEventBox" id="eventbox4">
+            <property name="visible">True</property>
+            <property name="can_focus">False</property>
+            <child>
+              <object class="GtkEntry" id="entry2">
+                <property name="visible">True</property>
+                <property name="can_focus">False</property>
+                <property name="text" translatable="yes">000</property>
+                <property name="name">reference</property>
+                <property name="width_chars">6</property>
+              </object>
+            </child>
+          </object>
+          <packing>
+            <property name="left_attach">0</property>
+            <property name="top_attach">1</property>
+            <property name="width">1</property>
+            <property name="height">1</property>
+          </packing>
+        </child>
+        <child>
+          <object class="GtkEventBox" id="eventbox3">
+            <property name="visible">True</property>
+            <property name="can_focus">False</property>
+            <child>
+              <object class="GtkEntry" id="entry4">
+                <property name="visible">True</property>
+                <property name="can_focus">False</property>
+                <property name="text" translatable="yes">000</property>
+                <property name="name">reference</property>
+                <property name="width_chars">6</property>
+              </object>
+            </child>
+          </object>
+          <packing>
+            <property name="left_attach">1</property>
+            <property name="top_attach">0</property>
+            <property name="width">1</property>
+            <property name="height">1</property>
+          </packing>
+        </child>
+        <child>
+          <object class="GtkEventBox" id="eventbox2">
+            <property name="visible">True</property>
+            <property name="can_focus">False</property>
+            <child>
+              <object class="GtkEntry" id="entry3">
+                <property name="visible">True</property>
+                <property name="can_focus">False</property>
+                <property name="text" translatable="yes">000</property>
+                <property name="name">reference</property>
+                <property name="width_chars">6</property>
+              </object>
+            </child>
+          </object>
+          <packing>
+            <property name="left_attach">1</property>
+            <property name="top_attach">1</property>
+            <property name="width">1</property>
+            <property name="height">1</property>
+          </packing>
+        </child>
+        <child>
+          <placeholder/>
+        </child>
+        <child>
+          <placeholder/>
+        </child>
+        <child>
+          <placeholder/>
+        </child>
+        <child>
+          <placeholder/>
+        </child>
+        <child>
+          <placeholder/>
+        </child>
+      </object>
+    </child>
+  </object>
+</interface>
diff --git a/tests/reftests/entry-progress-coloring.ui b/tests/reftests/entry-progress-coloring.ui
new file mode 100644 (file)
index 0000000..2e6bdea
--- /dev/null
@@ -0,0 +1,76 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<interface>
+  <!-- interface-requires gtk+ 3.0 -->
+  <object class="GtkWindow" id="window1">
+    <property name="can_focus">False</property>
+    <property name="type">popup</property>
+    <child>
+      <object class="GtkGrid" id="grid1">
+        <property name="visible">True</property>
+        <property name="can_focus">False</property>
+        <child>
+          <object class="GtkEntry" id="entry1">
+            <property name="visible">True</property>
+            <property name="can_focus">False</property>
+            <property name="width_chars">6</property>
+            <property name="text" translatable="yes">000</property>
+            <property name="progress_fraction">0.5</property>
+            <property name="name">padded</property>
+          </object>
+          <packing>
+            <property name="left_attach">1</property>
+            <property name="top_attach">0</property>
+            <property name="width">1</property>
+            <property name="height">1</property>
+          </packing>
+        </child>
+        <child>
+          <object class="GtkEntry" id="entry2">
+            <property name="visible">True</property>
+            <property name="can_focus">False</property>
+            <property name="width_chars">6</property>
+            <property name="text" translatable="yes">000</property>
+            <property name="progress_fraction">0.5</property>
+          </object>
+          <packing>
+            <property name="left_attach">1</property>
+            <property name="top_attach">1</property>
+            <property name="width">1</property>
+            <property name="height">1</property>
+          </packing>
+        </child>
+        <child>
+          <object class="GtkEntry" id="entry4">
+            <property name="visible">True</property>
+            <property name="can_focus">False</property>
+            <property name="width_chars">6</property>
+            <property name="text" translatable="yes">000</property>
+            <property name="progress_fraction">0.5</property>
+            <property name="name">padded</property>
+          </object>
+          <packing>
+            <property name="left_attach">0</property>
+            <property name="top_attach">1</property>
+            <property name="width">1</property>
+            <property name="height">1</property>
+          </packing>
+        </child>
+        <child>
+          <object class="GtkEntry" id="entry3">
+            <property name="visible">True</property>
+            <property name="can_focus">False</property>
+            <property name="width_chars">6</property>
+            <property name="text" translatable="yes">000</property>
+            <property name="progress_fraction">0.5</property>
+          </object>
+          <packing>
+            <property name="left_attach">0</property>
+            <property name="top_attach">0</property>
+            <property name="width">1</property>
+            <property name="height">1</property>
+          </packing>
+        </child>
+      </object>
+    </child>
+  </object>
+</interface>